package s0404.dao;

import s0404.entity.User;
import s0404.exception.BaseException;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * @author tg.si@188.com
 * @todo
 * @since 2024/4/13 8:15
 */
public interface UserDao {
    void login(Connection connection, User user) throws SQLException;
    User find(Connection connection, Integer id) throws SQLException, BaseException;

    int add(Connection connection, User user) throws SQLException;
}
